package cn.topevery.garden.dal.dao.impl;

import cn.topevery.garden.dal.dao.ProjAuditDao;
import cn.topevery.garden.dal.util.QueryWrapper;
import cn.topevery.garden.entity.po.ProjAudit;
import cn.topevery.garden.framework.base.BaseDaoImpl;
import hw.topevery.framework.entity.DbCsp;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 审计决算表
 *
 * @author code-generate
 * @date 2022-11-02
 */
@Repository
public class ProjAuditDaoImpl extends BaseDaoImpl<ProjAudit> implements ProjAuditDao {

    @Override
    public <P extends DbCsp> List<ProjAudit> getSearch(P para) {
        return null;
    }

    @Override
    public ProjAudit getByProjId(String projId) {
        ProjAudit projAudit = getEntityByColumns(new QueryWrapper<>().eq("c_db_status", 0).eq("c_proj_id", projId));
        return projAudit;
    }
}
